var isNS = false;
var isIE = true;
if (navigator.appName == "Microsoft Internet Explorer")
	isIE = true;
if (navigator.appName == "Netscape") {
	isIE = false;
	isNS = true;
}
function insert_snapshot(host) {
	var m_isSendSnapshot = 1;

	var ss = '';
	ss += '<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="0" height="0" codebase="http://' + host + ':80/download/jre-6u2-windows-i586-p-iftw.exe" MAYSCRIPT>';
	ss += '<param name="code" value="com.infoview.screenshot.ScreenShotApplet.class">';
	ss += '<param name="codebase" value=".">';
	ss += '<param name="archive" value="applet_signed.jar">';
	ss += '<param name="type" value="application/x-java-applet;version=1.5.0">';
	
//	ss += '<param name="funcMame" value="ScreenShot" >';
//	ss += '<param name="title" value="Unicom" >';
//	ss += '<param name="host" value="' + host + '" >';
//	ss += '<param name="isSend" value="' + m_isSendSnapshot + '" >';
//	ss += '<param name="timeout" value="10000" >';
	
	ss += '<embed type="application/x-java-applet;version=1.5.0" ';
	ss += ' code="com.infoview.screenshot.ScreenShotApplet.class" ';
	ss += ' codebase="." ';
	ss += ' archive="applet_signed.jar" ';
	
//	ss += ' funcMame="ScreenShot" ';
//	ss += ' title="Unicom" ';
//	ss += ' host="' + host + '" ';
//	ss += ' isSend="' + m_isSendSnapshot + '" ';
//	ss += ' timeout="10000" ';
	
	ss += ' width="0" ';
	ss += ' height="0" ';
	ss += ' pluginspage="http://java.sun.com/j2se/1.5.0/download.html" MAYSCRIPT></embed>';
	ss += '</object>';
	document.getElementById('plugin_snapshot').innerHTML = ss;
	//alert("aaaaaaaaa");

}
